//人工质检
import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/qc/inspection/` + url, ...arg)
export default {
	//质检提交
	insert(data) {
		return request('insert', data, 'post')
	},
	pageList(data) {
		return request('pageList', data, 'post')
	},
	del(id) {
		return request('del/' + id, null, 'get')
	},
	//导出
	export(data) {
		return request('export', data, 'post', {
			responseType: 'blob'
		})
	},
	//获取质检状态
	getStatus(id) {
		return request('getStatus/' + id, null, 'get')
	},
}
